#-- coding=utf-8 ---*---
# __author__ = 'wenke1'
import collections
#获取一个文件对象，那得打开一个文件才行
#open(name[, mode[, buffering]])   中括号表示可选参数
fileObject1=open('100x300.jpg','rb')
print "fileObject1 type is:",type(fileObject1),fileObject1
print isinstance(fileObject1,collections.Iterable)
for line in fileObject1:
    print line
fileread = fileObject1.read()
# print fileread
# print(type(fileread))

fileObject1.close()